public class Test {
    public static void main(String[] args) throws InterruptedException {
        /*Theard01 theard01 = new Theard01();

        Thread thread = new Thread(theard01);
        String name = thread.getName();
        System.out.println(name);
        thread.start();*/


        Theard02 theard02 = new Theard02();
        Thread object01 = new Thread(theard02);
        Thread object02 = new Thread(theard02);
        int o1 = object01.getPriority();
        int o2 = object01.getPriority();
        System.out.println(o1);
        System.out.println(o2);
        object01.start();
        object02.start();

        for (int i = 0; i <10 ; i++) {
            Thread.sleep(1000);
            System.out.println(Thread.currentThread().getName()+i);

        }
    }
}
